import pyautogui
import pywinauto
import cv2


spin_path = 'RainforceLearning\spin.png'
app_title = '幸运房东'
actions = ['spin', 'chooseSymbol', 'chooseGift']
res = pyautogui.locateOnWindow(spin_path, app_title, confidence=0.5)
x, y = pyautogui.center(res)
pyautogui.click(x, y)